package com.pharmacy.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@Slf4j
@AllArgsConstructor
@NoArgsConstructor
public class Orders {

    private Integer orderId;
    private String orderNumber;
    private String buyerId;
    private String medicine;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime buyDate;
    private BigDecimal price;
}
